<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>sqs.generator.SQSGenerator</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="sqs-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="sqs-module.html">Package&nbsp;sqs</a> ::
        <a href="sqs.generator-module.html">Module&nbsp;generator</a> ::
        Class&nbsp;SQSGenerator
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="sqs.generator.SQSGenerator-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class SQSGenerator</h1><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator">source&nbsp;code</a></span><br /><br />
<center>
<center>  <map id="uml_class_diagram_for_sqs_gene" name="uml_class_diagram_for_sqs_gene">
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#peek_message" title="Returns a preview of the message specified in the MessageId parameter." alt="" coords="19,38,557,56" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#list_queues" title="List all queues or queues with a certan prefix." alt="" coords="19,56,557,75" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#send_message" title="Save a message into Queue." alt="" coords="19,75,557,94" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#create_queue" title="Create a queue." alt="" coords="19,94,557,112" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#__init__" title="x.__init__(...) initializes x; see x.__class__.__doc__ for signature" alt="" coords="19,112,557,131" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#add_grant" title="sqs.generator.SQSGenerator.add_grant" alt="" coords="19,131,557,150" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#delete_queue" title="Delete a queue." alt="" coords="19,150,557,168" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#set_expires" title="Set absolute expiration time." alt="" coords="19,168,557,187" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#set_expires_in" title="Set relative expiration time from the url creation moment." alt="" coords="19,187,557,206" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#del_grant" title="sqs.generator.SQSGenerator.del_grant" alt="" coords="19,206,557,224" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#get_timeout" title="sqs.generator.SQSGenerator.get_timeout" alt="" coords="19,224,557,243" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#delete_message" title="Delete a message from Queue." alt="" coords="19,243,557,262" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#get_grant" title="sqs.generator.SQSGenerator.get_grant" alt="" coords="19,262,557,280" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#receave_message" title="Get message(s) from Queue." alt="" coords="19,280,557,299" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html#set_timeout" title="sqs.generator.SQSGenerator.set_timeout" alt="" coords="19,299,557,318" />
<area shape="rect" href="sqs.generator.SQSGenerator&#45;class.html" title="sqs.generator.SQSGenerator" alt="" coords="7,7,569,324" />
</map>
  <img src="uml_class_diagram_for_sqs_gene.gif" alt='' usemap="#uml_class_diagram_for_sqs_gene" ismap="ismap" class="graph-without-title">
</center></center>
<hr />
<p>Generator class</p>
  Objects of this class are used for generating authenticated URLs for 
  accessing Amazon's SQS service.<br /><br />

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">pub_key</span>,
        <span class="summary-sig-arg">priv_key</span>,
        <span class="summary-sig-arg">host</span>=<span class="summary-sig-default">&quot;queue.amazonaws.com&quot;</span>,
        <span class="summary-sig-arg">port</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">secure</span>=<span class="summary-sig-default">True</span>)</span><br />
      x.__init__(...) initializes x; see x.__class__.__doc__ for 
      signature
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#set_expires_in" class="summary-sig-name">set_expires_in</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">expires_in</span>)</span><br />
      Set relative expiration time from the url creation moment.
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#set_expires" class="summary-sig-name">set_expires</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">expires</span>)</span><br />
      Set absolute expiration time.
  </td>
</tr>
<tr class="private">
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#_auth_header_value" class="summary-sig-name">_auth_header_value</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">action</span>,
        <span class="summary-sig-arg">timestamp</span>)</span>
  </td>
</tr>
<tr class="private">
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#_params" class="summary-sig-name">_params</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">params</span>,
        <span class="summary-sig-arg">acl</span>=<span class="summary-sig-default">False</span>)</span>
  </td>
</tr>
<tr class="private">
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#_path" class="summary-sig-name">_path</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">queue</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">message</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">acl</span>=<span class="summary-sig-default">False</span>)</span>
  </td>
</tr>
<tr class="private">
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#_generate" class="summary-sig-name">_generate</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">method</span>,
        <span class="summary-sig-arg">queue</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">message</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">send_io</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">params</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">headers</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">acl</span>=<span class="summary-sig-default">False</span>)</span>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">string</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#create_queue" class="summary-sig-name">create_queue</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>,
        <span class="summary-sig-arg">timeout</span>=<span class="summary-sig-default">None</span>)</span><br />
      Create a queue.
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">string</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#list_queues" class="summary-sig-name">list_queues</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">prefix</span>=<span class="summary-sig-default">None</span>)</span><br />
      List all queues or queues with a certan prefix.
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">string</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#delete_queue" class="summary-sig-name">delete_queue</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">queue_url</span>)</span><br />
      Delete a queue.
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">string</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#send_message" class="summary-sig-name">send_message</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">queue_url</span>,
        <span class="summary-sig-arg">message</span>)</span><br />
      Save a message into Queue.
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">string</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#receave_message" class="summary-sig-name">receave_message</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">queue_url</span>,
        <span class="summary-sig-arg">number</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">timeout</span>=<span class="summary-sig-default">None</span>)</span><br />
      Get message(s) from Queue.
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">string</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#delete_message" class="summary-sig-name">delete_message</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">queue_url</span>,
        <span class="summary-sig-arg">message_id</span>)</span><br />
      Delete a message from Queue.
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">string</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#peek_message" class="summary-sig-name">peek_message</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">queue_url</span>,
        <span class="summary-sig-arg">message_id</span>)</span><br />
      Returns a preview of the message specified in the MessageId 
      parameter.
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#set_timeout" class="summary-sig-name">set_timeout</a>(<span class="summary-sig-arg">self</span>)</span>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#get_timeout" class="summary-sig-name">get_timeout</a>(<span class="summary-sig-arg">self</span>)</span>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#add_grant" class="summary-sig-name">add_grant</a>(<span class="summary-sig-arg">self</span>)</span>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#get_grant" class="summary-sig-name">get_grant</a>(<span class="summary-sig-arg">self</span>)</span>
  </td>
</tr>
<tr>
  <td width="15%" align="right" valign="top" class="summary">
    <span class="summary-type">&nbsp;</span>
  </td><td class="summary">
    <span class="summary-sig"><a href="sqs.generator.SQSGenerator-class.html#del_grant" class="summary-sig-name">del_grant</a>(<span class="summary-sig-arg">self</span>)</span>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__str__</code>
      </p>
    </td>
  </tr>
</table>

<br />
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Properties</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Properties"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>

<br />
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">pub_key</span>,
        <span class="sig-arg">priv_key</span>,
        <span class="sig-arg">host</span>=<span class="sig-default">&quot;queue.amazonaws.com&quot;</span>,
        <span class="sig-arg">port</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">secure</span>=<span class="sig-default">True</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  <br />x.__init__(...) initializes x; see x.__class__.__doc__ for 
  signature
  <dl><dt></dt><dd>
    <dl><dt>Overrides:
      object.__init__
        <dd><em class="note">(inherited documentation)</em></dd>
    </dt></dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="set_expires_in"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">set_expires_in</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">expires_in</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.set_expires_in">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  <br />Set relative expiration time from the url creation moment.
  <dl><dt></dt><dd>
    <dl><dt>Parameters:</dt></dl>
    <ul class="nomargin">
        <li><strong class="pname"><code>expires_in</code></strong> (int) - Relative expiration time</li>
    </ul>
  </dd></dl>
</td></tr></table>
</div>
<a name="set_expires"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">set_expires</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">expires</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.set_expires">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  <br />Set absolute expiration time.
  <dl><dt></dt><dd>
    <dl><dt>Parameters:</dt></dl>
    <ul class="nomargin">
        <li><strong class="pname"><code>expires</code></strong> (time.time()) - Absolute expiration time</li>
    </ul>
  </dd></dl>
</td></tr></table>
</div>
<a name="_auth_header_value"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_auth_header_value</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">action</span>,
        <span class="sig-arg">timestamp</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator._auth_header_value">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="_params"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_params</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">params</span>,
        <span class="sig-arg">acl</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator._params">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="_path"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_path</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">queue</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">message</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">acl</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator._path">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="_generate"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_generate</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">method</span>,
        <span class="sig-arg">queue</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">message</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">send_io</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">params</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">headers</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">acl</span>=<span class="sig-default">False</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator._generate">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="create_queue"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">create_queue</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>,
        <span class="sig-arg">timeout</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.create_queue">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  <br />Create a queue.
  <dl><dt></dt><dd>
    <dl><dt>Parameters:</dt></dl>
    <ul class="nomargin">
        <li><strong class="pname"><code>name</code></strong> (string) - The name to use for the Queue created. The Queue name must be 
          unique for all queues created by the given Access Key ID.</li>
        <li><strong class="pname"><code>timeout</code></strong> (int) - Default visibility timeout for this Queue. If this parameter 
          is not included, the default value is set to 30 seconds</li>
    </ul>
    <dl><dt>Returns: string</dt>
        <dd>Authenticated URL for creating a new Queue.</dd></dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="list_queues"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">list_queues</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">prefix</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.list_queues">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  <br />List all queues or queues with a certan prefix.
  <dl><dt></dt><dd>
    <dl><dt>Parameters:</dt></dl>
    <ul class="nomargin">
        <li><strong class="pname"><code>prefix</code></strong> (string) - This parameter can be used to filter results returned. When 
          specified, only queues with queue names beginning with the 
          specified string are returned.</li>
    </ul>
    <dl><dt>Returns: string</dt>
        <dd>Authenticated URL for listing Queues.</dd></dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="delete_queue"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">delete_queue</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">queue_url</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.delete_queue">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  <br />Delete a queue.
  <dl><dt></dt><dd>
    <dl><dt>Parameters:</dt></dl>
    <ul class="nomargin">
        <li><strong class="pname"><code>queue_url</code></strong> (string) - Queue url</li>
    </ul>
    <dl><dt>Returns: string</dt>
        <dd>Authenticated URL for deleting queue</dd></dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="send_message"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">send_message</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">queue_url</span>,
        <span class="sig-arg">message</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.send_message">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  <br />Save a message into Queue.
  <dl><dt></dt><dd>
    <dl><dt>Parameters:</dt></dl>
    <ul class="nomargin">
        <li><strong class="pname"><code>queue_url</code></strong> (string) - URL for the Queue in which the message should be saved</li>
        <li><strong class="pname"><code>message</code></strong> (string) - Message body</li>
    </ul>
    <dl><dt>Returns: string</dt>
        <dd>Authenticated URL for saving message into Queue</dd></dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="receave_message"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">receave_message</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">queue_url</span>,
        <span class="sig-arg">number</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">timeout</span>=<span class="sig-default">None</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.receave_message">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  <br />Get message(s) from Queue.
  <dl><dt></dt><dd>
    <dl><dt>Parameters:</dt></dl>
    <ul class="nomargin">
        <li><strong class="pname"><code>queue_url</code></strong> (string) - URL for the Queue from which the message should be 
          relatived</li>
        <li><strong class="pname"><code>number</code></strong> (int) - Maximum number of messages to return. If the number of 
          messages in the queue is less than value specified by 
          NumberOfMessages, then the number of messages returned is up to 
          the number of messages in the queue. Not necessarily all the 
          messages in the queue will be returned. If no value is provided, 
          the default value of 1 is used.</li>
        <li><strong class="pname"><code>timeout</code></strong> (int) - The duration, in seconds, that the messages are visible in the
          queue. If no value is specified, the default value for the queue 
          is used</li>
    </ul>
    <dl><dt>Returns: string</dt>
        <dd>Authenticated URL for retreaving messages from Queue</dd></dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="delete_message"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">delete_message</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">queue_url</span>,
        <span class="sig-arg">message_id</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.delete_message">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  <br />Delete a message from Queue.
  <dl><dt></dt><dd>
    <dl><dt>Parameters:</dt></dl>
    <ul class="nomargin">
        <li><strong class="pname"><code>queue_url</code></strong> (string) - URL for the Queue from which the message should be deleted</li>
        <li><strong class="pname"><code>message_id</code></strong> (string) - The ID of the message to delete</li>
    </ul>
    <dl><dt>Returns: string</dt>
        <dd>Authenticated URL for deleting message from Queue</dd></dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="peek_message"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">peek_message</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">queue_url</span>,
        <span class="sig-arg">message_id</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.peek_message">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  <br /><p>Returns a preview of the message specified in the MessageId 
  parameter.</p>
  The message is returned regardless of the VisibilityTimeout state on 
  the queue. The visibility state is not modified when PeekMessage is used,
  thereby not affecting which messages get returned from a subsequent 
  ReceiveMessage request.
  <dl><dt></dt><dd>
    <dl><dt>Parameters:</dt></dl>
    <ul class="nomargin">
        <li><strong class="pname"><code>queue_url</code></strong> (string) - URL for the Queue from which the message should be peeked</li>
        <li><strong class="pname"><code>message_id</code></strong> (string) - The ID of the message to retreave</li>
    </ul>
    <dl><dt>Returns: string</dt>
        <dd>Authenticated URL for retreaveing a message</dd></dl>
  </dd></dl>
</td></tr></table>
</div>
<a name="set_timeout"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">set_timeout</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.set_timeout">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="get_timeout"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">get_timeout</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.get_timeout">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="add_grant"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">add_grant</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.add_grant">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="get_grant"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">get_grant</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.get_grant">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<a name="del_grant"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">del_grant</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="sqs.generator-pysrc.html#SQSGenerator.del_grant">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  
  <dl><dt></dt><dd>
  </dd></dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="sqs-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">Generated by Epydoc
        3.0alpha3 on Wed Sep 20 12:10:47 2006</td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
